import request from './apiConfig'
const base_url = '/internships'

export function getInternshipByEmpId(id) {
    return request({
        url: `${base_url}/${id}`,
        method: 'GET',
    })
}

export function listInternshipApi(query) {
    return request({
        url: base_url,
        method: 'GET',
        params: query
    })
}

export function updateInternshipApi(internship) {
    return request({
        url: base_url,
        method: 'PUT',
        data: internship
    })
}

export function listRightInternshipApi(internship) {
    return request({
        url: `${base_url}/turn`,
        method: 'GET',
        params: internship
    })
}